improve speed judge