first step with data reading