added capture method + tests