adding condition to detect classList