added map scaling