Doubt got cleared

i got the solution i needed

That’s great, but still you can leave the question, as it may be doubt of others and may help them.
Instead you can edit and add what was your mistake and how you corrected it.