no return values
include start and end indexes, add .getAttribute()
fix issue with null return values