refixed map show functionality