new simple but efficient controller algorithm