added prefix matching function prototype