used _.defaults in the wrong way. corrected this