initial recorder code