added simple map code