added console.log to help debug missing elements