corrected compile errors, removed unused destino variable