get inputs from console