worked on write pipeline