made certain public functions private