added option to select 6/8 digits (6 by default)