add method almost working + index working