function is used only once, so the opening lines were redundant
normalising usage of Float32Array ?: Array
removing superfluous indentation