added defaults to code