fixed amplitude in output ; also had a lot of fun