Change method of getting inherit elements