accept fields through array structure