Language acquisition, metrical theory and optimality door