added n_frames
improved formatting