added ring_ready function