converting  eo method  to non-eo method