optimization of installation angles