first version of amatch