making detect correspond to robfigs