changes in broadcast function
some more changes