map code refactoring. changed spaces to tabs