updated the insert_observations procedure