extracting declaration method