sin wave now working and combined normalising working