finally fixed the jank