made useless "function" useful

black magic