change method or creating of init to template