added scale function to map object