add setDefault
use constants for clarity