remove testing console.logs from functions