turned lurker burrow code into functions