fixed compilatoin errors