index and prototype updated