added subscribe func to only receive data in callback