closure generator (only fields)