created function to generate claims
encapsulated claims generation