updated rope class.