added return 0's, new gpp compiler broke everything