now accepts continuous input