fix slowdowns