helper to render classes