simplify styles and attrs