reference printing to log + converting the input from the sinusoidal