finished base map code; move to ghc code