eliminated some unnecessary instructions