possible modified code for full bitwidth pipe