added presentation version of code - for hansong's map editing