map1 added
fixed distinct