added return statement
fixed typo