fixed dense function with access to years list.