finally debugged the 2's problem