pipeline first and last