add inout function.