testing .then instead of .done