added input and number handler