set proper visibility