refine check code bitmap