added queries for peer editing