removed localstorage and added global variables (finger)