resolve the resolution problem. and add debug info in the screen