compression using splines