added one thing that should increase speed by about 3 times