removed some compiler warnings