removed some ruby warnings.