updated functionsasa