added return statements to private methods