added keepnum option