updated lippman code. minor changes