refactor random background