make sure _flatten_ is not already used