made a find prefix method needs to be tested