sorry i didnt specify what is going wrong.
your code is writing the member on the list no matter if he is already in it or not