adding callback to update statement