fix length to use ID instead of x