commiting flat map