reduced console.logs, fixed historic bug