Magic circuit