use script and style functions for 8