changed console logging