added checking for classList