updating conditional statement