changing all methods for getting in objectlocations to static and other
stuff