work with data.frames (column major)
deleted linear