xyzr was being created twice