the variables start and end don't appear to be used hereafter.