calloc to malloc, test for norm, copyright and license