added get/set and indexOf is public