ruby further impl.