updating field.max_size to be field.type instead