more precise encoding/decosing for GA