added 256 code into Q2 code