added first and last key value to map