refactor toe