changed from difference.first to difference.last