work on control algorithms