working out kinks
Optimized for block computation and tested