heap check added
heap check added