add assignment with pipes insted of calling method on object instantion