BUGFIX: wrong operator
BUGFIX: potential out of bounds