converted method from private to public