remove style attribute in a more idiomatic fashion