changed 1/2 to 0.5