rename to createWithIndex
use different type for create