shell only one problem reuse code