ready method has been added