1. optimizing angle