replaced because with if :)