extracting port