use instance variable in callback