added ruby method