added defaults function