adding in missing code for the background