added ability to modify the bend angle