changed adding account to function + syntax changes