rewrite slots to use classes