changed init() in index