removing declaration errors