added linewise map