pruned code/functions