fixing a method call