remove weird anonymous function