removed unwanted code related to pub private switch