get rid of two compiler warnings