delete completed TODO
make mutable functions return their first array parameter