moved method call from header to index