updated to latest version cleaned up code for random background