map calculations