creating master function for mcadre