fixed map pos func