update services example but not working correctly