calling the proper method