read inputs