replaced ** with math.pow