corrected the method call