modifed version 1 of peers