prevent duplicate updates