solution paring for simple encoding -> first running version