delete unnecessary declarations