moved closure to deps