finally getting good results, still need to turn into final matrix