added format('YYYYMMDD') for output