refactored order gratuity