incorrect use of promises is fixed