trying to find error by logging all elements