clever ruby stuff