Use init boolean
Use index instead of obj