added dep on promise