added background code