more printf for debugging fixed compile error