fixed glitch. had to do with NA vals and such. add control, but seems to be working