cleaned up Background.java code