error changed to 5% and angle to 40 degrees