create helper method for gravater