removed the style action from function