added return statement to == operator