removing exccessive console.logging