fixed parameters in the function call find_prefix