A MWE of your problem would help people understand exactly what you’re trying to do, and how we can help: