background fucntions changed 3 times