version (naive optimization)