works better respecting lines