worked towards another impl of ntimes without flet