added speaker functionality