deleted unused if statement