remove extraneous visibility changes