finshed integration of my optimizations
hash10