small change

change some var fron int to uint32_t for shifting the data