some optimizations

zero y pivot