init() method corrected