forgot to initialize variables, fixed that