change private to public functions