refactor so that we call the other init method and avoid duplicating code