Ruby style some modifications