first (ugly) working draft of extracted guess fn