made mapandreas use less memory