fixed problem; only reset waitTime when the names match