a nice solution to the tabs problem