add random background logic