retval not declared