rewrite Grid.line