code changes to update user points