O(m*n*k) is mad efficient