bugfix for memleak, show element quantities