updated utilityfuncs to common way of setting range and angles.