updates to map code and characterizing insertion code