better speed calculations