adding Christina's speed checking functions