revise code to in case of no background --> dev