background service code added