added some extraction codes