added constructor for communication