add explicit return for methods; change in memory processing to default behavior
update tests for modifed index option
add explicit return to be more expressive