fixed errors for compiler