removed illegal if statement