fix the mod so we get values up to 255