decrease the risk of an overflow due to typecase from unsigned to signed