reducing size of firmware