changed timer connection to call new function