prevents classList error