fixed int signedness and a var name