add ready method

add ready method