put promise back in correct place