can not call method in template. I dont know how to solve...