set methods to private from public