combined array functionality into subscribe()/unsubscribe()