add compound check