secured from going out of bounds