setting idnex
index works in much better way