assigns capsule type before before