debugging $advanced 2