fixing ruby performance, adding paste over