removed anon function