organizing slightly differently, added option to change interpolation
for the line