moved makeaccount method