still fixing pipe bug