working on master controleler