revise bg and code formatting