error checking for makeprivate