extract didn't work,
added in some statements about x, d, and A not working.