$then instead of then