added code for background