shorten an anon function