added SWTFunctions