in the middle of promise fix