making update invoke checking generic