added a recording method