implement subscribe
test helpers function