add generate method
fixes bug where last week could be missed