added exception query