this was correct as lukas did it. what you do is only go into the loop if there is no prefix, effectively never filtering