transfered some funcions with no dependencies to Util.py