work code shortened