simplified the steps and added a longer preamble