A method for controlling flow differences in a turbocharged internal combustion engine is presented. In one example, the description includes a method for adjusting valve timing to reduce flow variation between two compressors.