Follow drupal coding standard and try to change variable name like $output1 , $result1 etc write proper name which suits its functionality.