made some small optimizations to tanky