fixed compiler warnings and errors