replaced all int variables with byte