account_details map function