worked on background fitting