add bind method for changing function's context