removed angle check for theta range; moved/removed imports