base line of Simon code