lines 161-163 are promises too