somehow correctly detecting matrix, but the shadows...