reading data from stdin