unnecessary if statement