started new master function