add bound checking