writeup v1
nested if file generator