working with matrixes... doing right but still too slow -.-