verify macro into function