added subscribeAPI