added names to functions which were anoynomous