added function for style