update typo, and unneccesary if statement.