* fixing huge bug in prefix calculation