removed unused if statement