adding ready method