fixed the method to be called