CHANGED:applied the clearWorkspack function