removed unnecessary prefix calculation