replaced old obj2map
improved obj2map