refactor map location.