add theta from 0 to pi/2