add `reject` and use it in the then's below