removed pedantic warnings