add output method