#16

1. index and rect changed to protected