Rerwites short if to long if