debugged map_manipulation