removed extra switch case in backgroud