[CHANGE] casting  the return of getId => save the ram
[CHANGE] beginning of code comments