removed redundant code
fixed ready subscription