repeat and diagnosis stuff