update init to boolean type