init index and src