updated subscriber code