nit: not sure |apps| is needed.
nit: let's add a small name to our anonymous function (i know i bug everyone with that)