adjusted friendship API