added -lm, was getting an error before