made new goal function and added bootstrap