add showmappings function