Change else if (rc == 2) to else