making sangular.promise