changed visibility method