implement function to make method call