removed usless code
fixed videorecording