original  code