changed "tags" to "new_tags" in input.cpp