strip off private fields