processData() go line by line with shift and push