making changes via var and consolelog