defined 1024 as MAX_CAP, 256 as SUB_CAP; begin pipe function