changes private settings function to use user class