debugging speed problems