fixed no return in non void function