minor inconsistencies regarding the declaration of variables as signed vs unsigned