replaced malloc() with calloc(),no need for memset() now