replace bzero() with memset()