made init method in publicly available