casting malloc is not a thing i need to be doing