tweaking peer functions