removed else statement and removed incorrect return statement