bug fixed, private to public