use thin fix condition and put some debugging