committing fixes for the lower/upper case problem and the remainder and the offset