added ruby methods