moved standard_fields assignment to separate function
moved standard_fields assignment to separate function