small changes
changed peer algorithm