cleanFunction: working