move pipe data to class