implemented friend branch