rework recursion logic
remove junk comment
clean up unnecessary functions
clean up trigger function
remove unneeded tests