increase output buffer size in Scale algo