fixing issue with speedup