update a statement