added sqrt and -lm to make