implemented prefix parser