a clean function that actually functions :)