This method has a parameter named "model" which isn't used and is then shadowed by this loop. Looks like the parameter can be deleted entirely.