minor refactor to use reverse() instead of stride()