replaced 1 with true for boolean values