it would be better to split in two methods : `create` and `index`