added example bug fixes