Calloc instead of malloc to get rid of distortion?