method to private