fix pedantic warnings