using correct type on parsing edited fields