add privacy functionality