added & implemented capture() routine