removing redundant anon fn