implemented piping, system mainly working