improved testing found an issue in my original solution