changed method from private to public