added and implemented _getSafeElemSize()