added send dictionary function for testing