line.expand has been improved