service function fix