added a public method