Init, broken
all broken, but algorithym seems good
Fixed