adding function execution before binding