Fixed my math, multiplied f with h*h