please check my ifs. thanks.