some modification,it seems work now