fix the duplicate method call