move getInstance() higher up for clarity