creating subroutine to cut on code (comment)