changed some variable names in capsuleContext