now works end to end with capsule

now works end to end with capsule