fixing some pedantic warnings