remove non needed variable and method call