changed functionality for master and branch