adds index as default method