clean code
read signal from file