adding rec & play functions