move init() further up in the file