make updateRank function
make isUser function