remove unnecessary .then