account details map function