implemented choice of account type