cleanup code to suppress warnings