extract output method