added indexes and striped the inputs