introduced math of mapping tuples to integers
morph code refactoring