fixes some compiler warnings