convert to old distribute method