measure size of elements