substituted input, now able to work without any input