handle callback for looper