first bash at #31 ... there seems to be a normalisation AND a memory allocation bug somewhere