improve various

Ruby