added capture mode