added Container field and getParentBlock function