better way to set defaults