remove privateDecls