added the @defined function