change friend object format