3 errors - but it works