add frame number to output