fix trig
fix sample data and runability