fixed other major error with procedure?