fixing the annoying warnign msg