made ordering in history to work!