create fulfilled and rejected promises