removing illegal declaration