remove private attributes that causes warnings