adding intent inout