create index action. (Fix #2)