modify to check if HTTP GET query "i" is given or not
modify to fix bug not to use removed macro
fix bug
fix bug