fix the prince function!