offset was undeclared