sorry about my double post, but: the receive in the search function, was first under (in) the (guess =! searchFor) block, but it was the same effect. for testing i have these writeln("test1 and 2"). writeln(guess) i have never seen. is receive a loop itself ?