define before calling