add feature visiblility check function.