most up to date affordance code