fix function visibility