adds error in index.html