fixed warning about int func with no return val