only 2 errors, check the return and the call of functions