clean up private code