added comment and now use second arg of then instead of catch.