resolution 1, requires a lot of memory