trying to implement promis in project