fixed some typos
added Long param to isValueInRange