remove chomp in the if statement