fixed compileerrors