made the method public to be used through classes