fixed some compiler warnings