refactored my message method into a helpers file