changed to use sweep angle instead