added types to update fields