fix to remove compiler warnings