removed some unused labels
removed some unused imports and other functions