debugged upto block 496