more aesthetic changes
define originalLength for positive ignore index