fixed some compiler  warnings