fixed some warnings from compiler