improved Latine code