added check for effective elements during execution