changed to use setDefault