moved scan function to tvelectronics class