update length of first level typedef