merge class names properly