remove malloc cast