dry up some code