fixing errors related to uint