optimal roof selection