add state to callback