removed extra fi for subdeclaration