removed a redundant 'else' clause