addressed issue with console logging