emitting interger (migrated to ruby)