running version, have bug when run ruby code