small changes in template  init() wasn't called