add ifdef snippit