deleting useless code, documenting