rewrite in jade and somethings changed