edited if lines