Changed logic of key-value forming

Such method allows to choose diferent keys for values