made the sample app easier to tweak for different input sizes