really n*m calloc this time