resolved the slowdown problem