removing anon function