setting up anon function