add scale and random inputs