my pubsub attempt