fixed Paul's error