new constructor with parameters for recording