boundaries check added