added error for missing instances