add goal productivity function to service