added parameter for maximal roll angle