attempt better optimization