changed the last if statement to an else
Merge pull request #1 from rozari15/master

changed the last if statement to an else