added console.log to double check functions