fixing some minor compiler warnings