scrubing code to help load times