moved list of allowed fields to constants