updated lippmann code