adding master callback