found way to get this to work but doen't pass to other functions like timer