assigns capsule properties before the hook