fixes in finding in out indices