debugging with tim, making variables work