Subaru SVX – Question about starter / installation

Hi, everybody! I came across this forum via Google and would like to start a friendly hello as a newcomer. I am probably what you can call a bloody beginner in the field of self-help. With our SVX the ADAC localized the starter as defective and I thought that I would change it myself. Expansion and installation went quite smoothly only I did not pay attention to the wiring or didn’t notice where they were sitting. The plug was clear, only ha be I now 2 cables coming from a common strand (battery ?). One of the two must be screwed safely on the starter, the 2nd also or does it have its place somewhere else? I took a picture of what you can see well. Would someone help me? Alex