included direction,window
removed kernel_matrix
testing version