corrected the problem of incrementing the host memory pointer and internal memory pointer