changed custom quadratic to power 5