correcting createOrUpdate