removed unnused function from pipe