fixing a few pedantic warnings