adding update function to change the field storage type