adding capsule idempotence test
rearranging predicates in hydrate
adding clause for nil values in hydrate