remove speed up code