inout with closures