add checking for style sheet