getters and setters plus index limiting