some code fragment for test frame buffer