alter classes on both sides