so if you return a reference to something created in the function, that disappears when the function returns so it will be a dangling reference
i am aware of it, thats the RAII Lifecycle i was refering