removed an unnecessary if statement