add error for removal code