modification
add outpu
fix the expanded row problem with ly