disallow adding null elements