fixed errors at compile time