trying to fix piping errors