initialised variables so it actually works