fit map into the val system