remove redundant next if, accidentally left in after edits