make function return type a varId