added console.logs for testing