fixed errors and some warnings