return new value from promise to chained promise correctly