delete unnecessary functions in pipeline