added inout method