Returning instead of printing