divided style and scripts logically