extract declarations